

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<HTML>
    <HEAD>
        <TITLE>Login using jsp</TITLE>
    </HEAD>

    <BODY>
        <H1>LOGIN FORM</H1>
        <%
                    HttpSession s = request.getSession();

                    if (s.getAttribute("id")!= null) {
                        out.println("Welcome  " + s.getAttribute("id") + "  , <a href=\"logOut.jsp\" >Logout</a>");
                    } else {
        %>
        <form action="<%=request.getContextPath()%>/LogIn/Admin/checkLogin.jsp">
            <table>
                <tr>
                    <td> Username  : </td><td> <input name="id" size=15 type="text" /> </td>
                </tr>
                <tr>
                    <td> Password  : </td><td> <input name="pass" size=15 type="text" /> </td>
                </tr>
                <tr>
                    <td> Tipo  : </td><td> <select name="tipo">
                            <option>Administrador</option>
                            <option>Comite de Programa</option>
                        </select>
                    </td>
                </tr>
            </table>
            <input type="submit" value="login" />
        </form>
        <%                        }
        %>

    </BODY>
</HTML>
